﻿using AutoMapper;
using SmartProduction.Domain;
using SmartProduction.Domain.ProductionOrders;
using SmartProduction.Domain.采购委外订单;
using SmartProduction.Read.API.Application.Commands.ClientInfoCommands;
using SmartProduction.Read.API.Application.Commands.DepartCommand;
using SmartProduction.Read.API.Application.Commands.ItemListInfoCommand;
using SmartProduction.Read.API.Application.Commands.ProductionOrderNoInfoCommand;
using SmartProduction.Read.API.Application.Commands.PurchaseCommand;
using SmartProduction.Read.API.Application.Commands.ResourceInfoCommand;
using SmartProduction.Read.API.Application.Commands.SupplierCommand;
using SmartProduction.Read.API.Dto;
using SmartProduction.Read.API.Dtos;

namespace SmartProduction.Read.API
{
    public class AutoMapperFile: Profile
    {
        public AutoMapperFile()
        {
            CreateMap<ResourceInfoQueryCommand, ResourceDTO>().ReverseMap();
            CreateMap<ClientInfoQueryCommand, ClientInfoDTO>().ReverseMap();
            CreateMap<STaskGetDto, STask>().ReverseMap();
            //CreateMap<ResourceInfoQueryCommand, ResourceDTO>().ReverseMap();
            //CreateMap<ClientInfoQueryCommand, ClientInfoDTO>().ReverseMap();




            CreateMap<PurchasedetailsQueryCommand, PurchasedetailsQueryDto>().ReverseMap();


            //生产单号

            CreateMap<ProductionOrderNoInfoQueryCommand, ProductionOrderNoInfo>().ReverseMap();

            CreateMap<ItemListInfoQueryCommand, ItemListInfo>().ReverseMap();
        }
    }
}
